<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<style>
    .menutop {
        background-color: #DDDDDD;
    }
    
    .menucolor {
        color: black !important;
    }
</style>

<body>
    <!--导航栏-->
    <div class="layui-head">
        <ul class="layui-nav menutop" lay-filter="">
            <li class="layui-nav-item  layui-this layui-col-md-offset1"><a href="" class="menucolor">首页</a></li>
            <li class="layui-nav-item"><a href="" class="menucolor">排行</a></li>
            <li class="layui-nav-item"><a href="" class="menucolor">完本</a></li>
            <li class="layui-nav-item">
                <a href="" class="menucolor"><img src="img/zuozhe.ico" class="layui-nav-img">作家专区</a>
            </li>
            <li class="layui-nav-item layui-col-md-offset3">
                <a href="" class="menucolor">用户：XXXX</a>
            </li>
            <li class="layui-nav-item">
                <a href="" class="menucolor">注册</a>
            </li>
            <li class="layui-nav-item">
                <a href="" class="menucolor">登录</a>
            </li>
            <li class="layui-nav-item">
                <a href="" class="menucolor"><img src="img/books.ico" class="layui-nav-img">我的书架</a>
            </li>
        </ul>
    </div>
</body>
<script src="layui/layui.js"></script>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function() {
        var element = layui.element;
    });
</script>

</html>